import request from '@/utils/request'

// 查询第三方账号列表
export function listThirdpartyaccounts(query) {
  return request({
    url: '/thirdpartyaccounts/thirdpartyaccounts/list',
    method: 'get',
    params: query
  })
}

// 查询第三方账号详细
export function getThirdpartyaccounts(thirdPartyId) {
  return request({
    url: '/thirdpartyaccounts/thirdpartyaccounts/' + thirdPartyId,
    method: 'get'
  })
}

// 新增第三方账号
export function addThirdpartyaccounts(data) {
  return request({
    url: '/thirdpartyaccounts/thirdpartyaccounts',
    method: 'post',
    data: data
  })
}

// 修改第三方账号
export function updateThirdpartyaccounts(data) {
  return request({
    url: '/thirdpartyaccounts/thirdpartyaccounts',
    method: 'put',
    data: data
  })
}

// 删除第三方账号
export function delThirdpartyaccounts(thirdPartyId) {
  return request({
    url: '/thirdpartyaccounts/thirdpartyaccounts/' + thirdPartyId,
    method: 'delete'
  })
}
